package cn.jcby.app.lebu.entity;

import cn.jcby.app.config.GeometryTypeHandler;
import cn.jcby.app.config.PointTypeHandler;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 个人运动
 * 
 * @author lht
 * @email 
 * @date 2023-12-07 15:13:35
 */
@Data
@TableName("lb_user_person_motion")
public class UserPersonMotionEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;


	  /**
    * 
    */
    @TableId(value="id",type = IdType.AUTO)
    private Integer id;
    

	   /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;
	

	   /**
     * 运动类型
     */
    @TableField("motion_type")
    private String motionType;
	

	   /**
     * 开始位置
     */
    @TableField("begin_location")
    private String beginLocation;
	@TableField(value = "begin_location_point",typeHandler = PointTypeHandler.class)
    private String beginLocationPoint;


	   /**
     * 结束位置
     */
    @TableField("end_location")
    private String endLocation;
    @TableField(value = "end_location_point",typeHandler = PointTypeHandler.class)
    private String endLocationPoint;


	   /**
     * 里程：单位米
     */
    @TableField("mileage")
    private BigDecimal mileage;
	

	   /**
     * 步数
     */
    @TableField("step_num")
    private Integer stepNum;
	

	   /**
     * 耗时：单位s
     */
    @TableField("time_consume")
    private Integer timeConsume;
	

	   /**
     * 路线
     */
    @TableField(value = "route",typeHandler = GeometryTypeHandler.class)
    private String route;
	 @TableField(value = "plan_whole_course")
    private BigDecimal planWholeCourse;
    @TableField(value = "begin_time")
    private Date beginTime;
    @TableField(value = "end_time")
    private Date endTime;


     @TableField("status")
    private Integer status;

    /**
     * 是否删除：0正常1删除
     */
    @TableField("del")
    private Integer del;
	

}
